import myAxios from "../MyAxios";
import BaseUrl from "../BaseUrl";
const showingonPlan = {
    /**
     * 排片计划
     * @returns 
     */
    add:(params) => {
      return myAxios.post(BaseUrl + 'plan/add' ,params)
    },
    //通过放映厅id查询排片计划
    queryByRoomid:(params) => {
      return myAxios.get(BaseUrl + 'plans/roomid',params)
    },
    /**
     * 删除排片计划
     * @param {object} params {id:1} 
     * @returns 
     */
    del:(params) => {
      return myAxios.post(BaseUrl + 'plan/del',params)
    },
    /**
     * 发布拍片计划
     * @param {object} params {id:1} 
     * @returns 
     */
     publist:(params) => {
      return myAxios.post(BaseUrl + 'plan/publish',params)
     },
      /**
     * 将排片计划设置为未发布状态
     * @param {object} params {id:1} 
     * @returns 
     */
       noPublist:(params) => {
        return myAxios.post(BaseUrl + 'plan/no-publish',params)
       }
    
}
export default showingonPlan;